package com.lianzai.stat.dao;

import com.lianzai.camera.model.CameraBlackAndWhiteDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 统计信息
 */
@Mapper
public interface StatDao {

    Map queryCompositeStat();

    List<Map> queryParkingStat();

    List<Map> queryCommunityMapList();

    Map queryUserTotal();

    void addDeviceNum(int communityId);

    void subDeviceNum(int communityId);

    void addUserPark(Long communityId);

    void subUserPark(Long communityId);

    List<Map> queryCommunityFeeByMonth(Map map);

    Map queryYearFeeMap(Map map);

    Map queryMonthFeeMap(Map map);

    List<Map> queryFeeByDateAndCommunity(Map map);

    void insertStatFee(Map map);

    void updateStatFee(Map map);
}
